Skip to content

More progress on capture-checking stdlib - #26727

Draft
natsukagami wants to merge 10 commits into
scala:mainfrom
natsukagami:cc-more-stdlib
Draft

More progress on capture-checking stdlib#26727
natsukagami wants to merge 10 commits into
scala:mainfrom
natsukagami:cc-more-stdlib

Conversation

@natsukagami

Copy link
Copy Markdown
Contributor

Continuation of #25526

Have you relied on LLM-based tools in this contribution?

No

How was the solution tested?

Covered by existing tests

We had to make Source and Codec function variables non-capturing, but they seem like good choices anyway.
Sources cannot be created from an impure Iterable, but doing that seems wrong anyways as `withReset` would re-create the iterator.

Would be interesting to try making Console/StdIn a global capability.
In particular, we require numeric and comparison traits (Ordering, Ordered, Numeric, Equiv) to be pure.
Of note: `typeConstraints` needs some change.
ReferenceWrapper marked Pure, as it is supposed to wrap a generic reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant